﻿@model S4Store.Domain.NetMarketingKpi.NetMarketingMedia
@{
    ViewBag.Title = "Modify";
    Layout = null;
    var types = LX.Core.Utils.Helper.EnumToList<S4Store.Domain.NetMarketingKpi.NetMarketingMedia.MediaType>();
}
<form class="pageForm addpage" action="@Url.Action("ModifyMediaBack")" method="post">
<div style=" height:100%; width:100%; overflow:hidden" class="verticalSplitContainer">
		<div class="pageFormContent" style="overflow: auto;" ratio="*">
            <table style="width:100%">
                <tr>
                    <td width="10%">名称：</td>
                    <td width="40%" ><input type="text" value="@Model.Name" size="30" name="Name" class="textInput" /></td>
                    <td width="10%">品牌：</td>
                    <td width="40%">
                    <select name="TypeValue">
                    @foreach (var type in types)
                    {
                    <option value="@type.ToInt()" @if (type.ToInt() == Model.TypeValue)
                                                  {<text>selected="selected"</text>}>@type.GetDescription()</option>
                    }
                    </select>
                    </td>
                </tr>
            </table>
			<input type="hidden" name="Id" value="@Model.Id" />
			
		</div>
		<div class="formBar" ratio="#30">
			<ul>
                <li><div class="simplebutton"><div class="r"><button type="button" class="submit">保存</button></div></div></li>	
			</ul>
		</div>
</div>
</form>